module cross_product (
	clk,	// clock
	rst,	// reset
	a,		// number a
	b,		// number b,
	result	// result of the product
	);
	
input clk;
input rst;

input signed [7:0] a;
input signed [7:0] b;

output reg [15:0] result;

reg [2:0] i;

always @ (posedge clk)
begin
  if (rst = 1 ) then
  	i = 3b'000;
  else
  	i = i + 1;
  end if
  accumulator <= sum;
  
  if (i=0) then
  	addin <= 0;
  else
    addin <= accumulator;
  end if
end

ai <= a[i];
bi <= b[i];
multiply <= ai * bi;
result <= accumulator;

endmodule